from selenium.webdriver.common.by import By
class RoleManagePageLocators():

    # 添加角色
    add_role = (By.XPATH, '//div[@class="mod-config"]/div[1]/div/form/div[2]/div/button/span')

    # 角色名称输入框
    role_name = (By.XPATH, '//input[@placeholder="请输入角色名称"]')

    # 类型-任课老师
    type_teacher = (By.XPATH, '//span[text()="任课老师"]')

    # 添加角色-确定按钮
    add_role_sure = (By.XPATH, '//div[@aria-label="添加角色"]/div[3]/div/button[2]/span')

    # 角色名称搜索框
    role_name_query = (By.XPATH, '//input[@placeholder="请输入名称搜索"]')

    # 列表第一条数据删除按钮
    delete_sub = (By.XPATH, '//div[@class="el-table__fixed-body-wrapper"]//div[text()="测试角色2"]/../..//span[text()="删除"]')
    delete_sub2 = (By.XPATH, '//div[@class="el-table__fixed-body-wrapper"]//div[text()="测试角色1"]/../..//span[text()="删除"]')

    # 系统提示-确认删除
    sure_delete = (By.XPATH, '//div[@aria-label="系统提示"]/div/div[3]/button[2]/span')

    # 系统提示-操作成功
    system_tip = (By.XPATH, '//div[@class="el-message el-message--success"]/p')

    # 列表第一条编辑按钮
    edit = (By.XPATH, '//div[@class="el-table__fixed-right"]//div[text()="测试角色1"]/../..//span[text()="编辑"]')

    # 修改角色-确定按钮
    edit_sure = (By.XPATH, '//div[@aria-label="修改角色"]/div[3]/div/button[2]/span')
